package com.vegetable.modules.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品分类数据传输对象
 * </p>
 *
 * @author wangruijie
 * @since 2024-12-10
 */
@Data
@ApiModel(value = "ProductCategoryVO", description = "商品分类数据传输对象")
public class ProductCategoryVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("分类名称")
    private String categoryName;

    @ApiModelProperty("分类编码")
    private String categoryCode;

    @ApiModelProperty("父分类ID，0表示顶级分类")
    private Long parentId;

    @ApiModelProperty("父分类名称")
    private String parentName;

    @ApiModelProperty("分类层级：1顶级，2二级，3三级")
    private Integer level;

    @ApiModelProperty("排序字段")
    private Integer sortOrder;

    @ApiModelProperty("分类图标")
    private String icon;

    @ApiModelProperty("分类描述")
    private String description;

    @ApiModelProperty("是否启用：0否1是")
    private Integer isEnabled;

    @ApiModelProperty("创建者ID")
    private Long createUserId;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新者ID")
    private Long updateUserId;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
}